package com.wl.api.model.business;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 *
 * 客户资金表
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "customer_fund")
@Builder
public class CustomerFund implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 用户资金主键 */
	@TableId(value = "fund_id", type = IdType.AUTO)
	private Long fundId;

	/** 客户id */
	@TableField(value = "cust_id")
	private Long custId;

	/** 当前金额 */
	@TableField(value = "current_amount")
	private BigDecimal currentAmount;

	/** 之前金额 */
	@TableField(value = "before_amount")
	private BigDecimal beforeAmount;

	/** 累计金额 */
	@TableField(value = "total_amount")
	private BigDecimal totalAmount;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

}
